package com.ruoyi.system.service.impl;

import java.util.List;
import java.util.Map;

import com.ruoyi.system.domain.PlayCount;
import com.ruoyi.system.mapper.PlayCountMapper;
import com.ruoyi.system.service.IPlayCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.common.support.Convert;

/**
 * 游戏局数 服务层实现
 * 
 * @author ruoyi
 * @date 2019-01-06
 */
@Service
public class PlayCountServiceImpl implements IPlayCountService
{
	@Autowired
	private PlayCountMapper playCountMapper;

	/**
     * 查询游戏局数信息
     * 
     * @param id 游戏局数ID
     * @return 游戏局数信息
     */
    @Override
	public PlayCount selectPlayCountById(Integer id)
	{
	    return playCountMapper.selectPlayCountById(id);
	}

	/**
     * 查询游戏局数列表
     * 
     * @param map 游戏局数信息
     * @return 游戏局数集合
     */
	@Override
	public Map<String,Object> selectPlayCountList(Map<String,Object> map)
	{
	    return playCountMapper.selectPlayCountList(map);
	}
	
    /**
     * 新增游戏局数
     * 
     * @param playCount 游戏局数信息
     * @return 结果
     */
	@Override
	public int insertPlayCount(PlayCount playCount)
	{
	    return playCountMapper.insertPlayCount(playCount);
	}
	
	/**
     * 修改游戏局数
     * 
     * @param playCount 游戏局数信息
     * @return 结果
     */
	@Override
	public int updatePlayCount(PlayCount playCount)
	{
	    return playCountMapper.updatePlayCount(playCount);
	}

	/**
     * 删除游戏局数对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deletePlayCountByIds(String ids)
	{
		return playCountMapper.deletePlayCountByIds(Convert.toStrArray(ids));
	}

	@Override
	public Map<String, Object> selectAgencyDataList(Map<String, Object> params) {
		return playCountMapper.selectAgencyDataList(params);
	}

	@Override
	public Map<String, Object> selectAgencyDataListMonth(Map<String, Object> params) {
		return playCountMapper.selectAgencyDataListMonth(params);
	}

	@Override
	public List<String> selectClubCountByCreateUser(String gameUserId) {
		return playCountMapper.selectClubCountByCreateUser(gameUserId);
	}

	@Override
	public List<String> getAllAgencyIds() {
		return playCountMapper.getAllAgencyIds();
	}

	@Override
	public void insertAgencyClubCount(Map<String,Object> map) {
		playCountMapper.insertAgencyClubCount(map);
	}

}
